package com.friends.utils.model;

import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author Z-7
 * @Date 2022/8/23
 */
@ToString
public class CityVO<T> {
    private Object id;
    private Object pid;

    private String cityname;

    private Integer count;

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public List<T> getChildren() {
        return children;
    }

    public void setChildren(List<T> children) {
        this.children = children;
    }

    List<T> children = new ArrayList<T>();

    public Object getId() {
        return id;
    }

    public void setId(Object id) {
        this.id = id;
    }

    public Object getPid() {
        return pid;
    }

    public void setPid(Object parentId) {
        this.pid = parentId;
    }

    public String getCityname() {
        return cityname;
    }

    public void setCityname(String cityname) {
        this.cityname = cityname;
    }

    public void add(T node){
        children.add(node);
    }


}
